package com.xiaohe66.web.application.common.convert;

import com.xiaohe66.web.application.common.bo.TagSaveBo;
import com.xiaohe66.web.application.common.result.TagResult;
import com.xiaohe66.web.domain.common.agg.Tag;
import com.xiaohe66.web.infrastructure.domain.adapter.common.TagConverter;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author xiaohe
 * @since 2023.01.29 15:09
 */
@Mapper
public interface TagBoConverter extends TagConverter {

    List<TagResult> toResult(List<Tag> tags);

    TagResult toResult(Tag tag);

    Tag toAgg(TagSaveBo saveBo);

}
